Returns the sign of the number passed to it.
Syntax |
|---|
|
result = Sign( value ) |
Parameters |
||
|---|---|---|
|
value |
The number being passed to the function. |
|
Return Value |
||
|---|---|---|
|
Result |
The sign of value. Returns- 1 if value is negative, 0 if value is zero, and 1 if value is positive. If you pass a String or some other incorrect data type, result is 0. |
|